package top.shiyiri.shops.service;

import top.shiyiri.shops.bean.ProHotShopTop10;
import top.shiyiri.shops.dao.ProHotShopTop10Dao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Aunean
 * @date 2021/12/27
 */
@Service
public class ProHotShopTop10Service {

    @Autowired
    private ProHotShopTop10Dao dao;

    public List<ProHotShopTop10> proHotShopTop10ByPage(int page, int size) {
        return dao.proHotShopTop10ByPage((page - 1) * size, size);
    }


    public int totalLines() {
        return dao.totalLines();
    }

    public List<ProHotShopTop10> proHotShopTop10() {
        return dao.proHotShopTop10();
    }
}
